package com.teamblueplus;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.FrameLayout.LayoutParams;

public class ComicComicActivity extends Activity implements OnClickListener, OnTouchListener {

    
    private Button comicMakerButton;
    private Button imageEditorButton;
    private Button viewComicButton;
    
    private Button exitButton;
    
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

        comicMakerButton = (Button) findViewById(R.id.bComicMaker);
        imageEditorButton = (Button) findViewById(R.id.bImageEditor);
        viewComicButton = (Button) findViewById(R.id.bViewComic);
        exitButton = (Button) findViewById(R.id.bExit);

        comicMakerButton.setOnClickListener(this);
        imageEditorButton.setOnClickListener(this);
        viewComicButton.setOnClickListener(this);
        exitButton.setOnClickListener(this);

	}

	@Override
	public boolean onTouch(View view, MotionEvent me) {
		
		return false;
	}

	@Override
	public void onClick(View v) {
        // TODO Auto-generated method stub
        switch (v.getId()){
        
        case R.id.bComicMaker: //start single player game
                break;
                
        case R.id.bImageEditor:
                break;
                
        case R.id.bViewComic:
                break;
                
        case R.id.bExit: //finish the activity
                
                this.finish();
                this.onDestroy();
                System.exit(1);
                break;
        
        }
		
	}
}